FROM registry.cn-shenzhen.aliyuncs.com/yaso/jre_alpine:8

ENV TZ Asia/Shanghai
ENV APP_DIR /apps/autoapply
ENV JAVA_OPTS="-Xmx2g -Xms2g"
ENV JAVA_GC="-XX:+UseConcMarkSweepGC"

ADD ./ /apps/autoapply/

WORKDIR /apps/autoapply

EXPOSE 80

ENTRYPOINT ["sh","-c","java -jar $JAVA_OPTS $JAVA_GC ${APP_DIR}/autoapply-0.0.1-SNAPSHOT.jar --server.port=80"]
